/* Copyright (c) [2020] [ylc]. Licensed under Apache-2.0 License. */

#ifndef __MY_TIMER_H
#define __MY_TIMER_H

#include "my_define.h"

typedef volatile struct{
	struct{
		u8 ticks_1ms:1;
		u8 ticks_10ms:1;
        u8 ticks_10ms1:1;
        u8 ticks_10ms2:1;
        u8 ticks_10ms3:1;
        u8 ticks_100ms:1;
		u8 ticks_1s:1;
		u8 ticks_1min:1;    
        u8 ticks_1h:1;        
        u8 ticks_1day:1;         
	}flags;
	u8 ticks_num_1ms;
	u8 ticks_num_10ms;
    u8 ticks_num_100ms;
    u8 ticks_num_1s;
    u8 ticks_num_1min;
    u8 ticks_num_1h;
}mTimer_t;
extern mTimer_t mTimer;


void timer_init(void);


#endif 

